package com.mxpio.boot.autoconfigure.filestorage;

import com.mxpio.boot.filestorage.api.FilestorageApiConfiguration;
import com.mxpio.framework.common.CommonConstant;
import com.mxpio.framework.common.vo.ModuleVO;
import com.mxpio.framework.filestorage.FilestorageConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 自动装载 文件模块 mxpio-filestorage
 * @author MxpIO
 *
 */
@Configuration
@ConditionalOnClass(FilestorageApiConfiguration.class)
@Import(FilestorageApiConfiguration.class)
@Slf4j
public class FilestorageApiAutoConfiguration {

	public FilestorageApiAutoConfiguration() {
		log.info("[AutoConfiguration==>]:Filestorage Api Module Loading");
		CommonConstant.addModule(new ModuleVO("Filestorage Api","文件管理模块 Api"));
	}

}
